package org.demo.sorting;

/**
 * This node support list build from:
 *  list, array
 * @author dzhang
 *
 */
public class Node {
	public int val;
	public Node next;
	public int nextId;
	public Point _p;
	
	public int getNextId() {
		return nextId;
	}

	public void setNextid(int id) {
		this.nextId = id;
	}

	public Node() {

	}

	public Node(int v) {
		val = v;
	}

	public Node(int v, Node n) {
		val = v;
		next = n;
	}
	
	public Node(Point p, Node n) {
		_p = p;
		next = n;
	}
}
